import { CDRoleSelect } from "../excel/CDRoleSelect";

export abstract class SDSelectRole {
    /**
     * 获取spine路径
     * @param pet 
     * @param player 
     */
    public static getSpineUrl(hxx:CDRoleSelect | number): string {
        let config: CDRoleSelect = null;
        if (hxx instanceof CDRoleSelect) {
            config = hxx;
        }
        else {
            config = CDRoleSelect.getData(hxx);
        }
        if (config) {
            return "select_role/"+config.model + '/' + config.model;
        }
        return null;
    }
}